import request from '@/utils/request'

// 查询预约列表
export function listAppointed(query) {
  return request({
    url: '/shop/appointed/list',
    method: 'get',
    params: query
  })
}

// 查询预约详细
export function getAppointed(appointedId) {
  return request({
    url: '/shop/appointed/' + appointedId,
    method: 'get'
  })
}

// 新增预约
export function addAppointed(data) {
  return request({
    url: '/shop/appointed',
    method: 'post',
    data: data
  })
}

// 修改预约
export function updateAppointed(data) {
  return request({
    url: '/shop/appointed',
    method: 'put',
    data: data
  })
}

// 删除预约
export function delAppointed(appointedId) {
  return request({
    url: '/shop/appointed/' + appointedId,
    method: 'delete'
  })
}
